import request from '../api/request';
import { requestUrl  } from '../api/http-url';

export const interfacesGoods = {
  // 商品详情
  goodsDetail: (data) => request({ url: `${requestUrl.api}/wshop/item/detail`, data, method: 'get'}),
  // 提交订单
  submitOrder: (data) => request({ url: `${requestUrl.api}/wshop/order/submit`, data }),
  // 订单待支付
  paymentInfo: (data) => request({ url: `${requestUrl.api}/wshop/order/payment-info`, data }),
  // 获取订单列表
  getOrderList: (data) => request({ url: `${requestUrl.api}/wshop/order/list`, data }),
  // 邀请boost活动页
  getBoostInfo: (data) => request({ url: `${requestUrl.api}/wshop/unauth/boost-info`, data, method: 'get' }),
  // boost参与
  boost: (data) => request({ url: `${requestUrl.api}/wshop/unauth/boost`, data }),
}